<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>DWRtest</title>
		<style>
			body,td,a,div,.p{font-family:arial,sans-serif}
			div,td{color:#000000}
			a:link,.w,.w a:link{color:#0000cc}
			a:visited{color:#551a8b}
			a:active{color:#ff0000}
		</style>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	</head>
	<script type='text/javascript' src='dwr/interface/DWRtest.js'></script>
	<script type='text/javascript' src='dwr/engine.js'></script>
	<script type='text/javascript' src='dwr/util.js'></script>

	<script language="javascript">
  	function update() {
		var comment = dwr.util.getValue("comment");
		DWRtest.getServerTime(comment, function(data) {
			dwr.util.setValue("serverTime", data);
		});
	}
	</script>


	<body>
		This is a DWR sample page.
		<br>
		<p>
			Comment:
			<input type="text" id="comment" />
			<input value="Get server time" type="button" onclick="update()" />
			<br>
			The server time is:<br>
			<span id="serverTime"></span>
		</p>

	</body>
</html>
